#ifndef QDELETENOTEBOOKVIEW_H
#define QDELETENOTEBOOKVIEW_H

#include <MApplicationPage>
#include "MDeleteNotebookView.h"
#include "QvernoteWindow.h"
#include "QvernoteAPI.h"

class QDeleteNotebookView : public QvernoteWindow
{
    Q_OBJECT

public:
    QDeleteNotebookView(MWidget *parent = 0);
    ~QDeleteNotebookView();

    void loadNotebooksIntoView();
    void showEvent(QShowEvent *) {
    	loadNotebooksIntoView();
    }

public slots:
	void setItemMark(QListWidgetItem *item);
   	void deleteSelectedNotebooks();
    void addSelectedCount() { qobject_cast<MLabel*>(ui.selectedCountAction->widget())->setText(QString(trUtf8("%1 notebooks")).arg(++m_iSelectedCount)); }
    void subSelectedCount() { qobject_cast<MLabel*>(ui.selectedCountAction->widget())->setText(QString(trUtf8("%1 notebooks")).arg(--m_iSelectedCount)); }

private:
    Ui::QDeleteNotebookViewClass ui;
    QvernoteAPI* m_hEvernote;


    int		m_iSelectedCount;
    MWidget* m_parent;
};

#endif // QDELETENOTEBOOKVIEW_H
